package com.gzdh.tang.cupboard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzdh.tang.cupboard.entity.CupboardCabInfo;
import com.gzdh.tang.cupboard.entity.CupboardSell;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface CupboardSellMapper extends BaseMapper<CupboardSell> {
    @Select("select top 1 * from cupboard_sell where machine_id=#{machineId} and status=-2 and trade_no <>'' and trade_no is not null ")
    CupboardSell getCupboardSell(@Param("machineId") String machineId);

}
